Coffee School The Player

Creating the Player

In this section you will be introduced to Crafty JS, creating our base player and making it be able to jump and be affected by a form of gravity.

  1. Introduction to Crafty - Here we introduce you to Crafty JS and entities
  2. Drawing the Player - In this lesson you will draw the player's avatar using an entity
  3. Creating the Player's Movement System - Here we consider the types of movement that a player will undergo in our game
  4. Keeping Track of the Players Motion - You will set up some variables which will keep track of and affect player movement
  5. Introduction to Game Loops - This section introduces you to game loops within games engines and frameworks, as well as Craftys own version
  6. Updating the Player's Position and Velocity - Here you will use the game loop to make a gravitational force act on your player and then move the player based on their speed
  7. Letting the Player "flap" - In this lesson you'll introduce keyboard interaction and allow the player to affect the game
  8. Refactoring! - Here you'll modify some existing code and learn a little about refactoring